<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<h1 align="center">学生信息</h1>
<hr align="center">
<h4 align="center"><a th:href="@{/toAdd}">添加</a></h4>

<table border="1" cellspacing="0" align="center" width="60%">
    <tr align="right">
        <td align="right" colspan="6"><a th:href="@{/logout}"  methods="post">退出</a></td>

    </tr>
    <tr align="center">
        <td>编号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>部门</td>
        <td>时间</td>
        <td>操作</td>
    </tr>
    <!--/*@thymesVar id="list" type="ch"*/-->
    <tr th:each="student:${list}" align="center">
        <td th:text="${student.uid}"></td>
        <td th:text="${student.uname}"></td>
        <td th:text="${student.age}"></td>
        <td th:text="${student.dname}"></td>
        <td th:text="${student.createtime}"></td>

        <td>
            <a th:href="@{/findByUid(uid=${student.uid})}">修改</a>
            <a th:href="@{/delete(uid=${student.uid})}">删除</a>
        </td>
    </tr>
</table>
</body>
</html>